from django.urls import path, include
from snippets import views
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('users', views.UserViewSet)
router.register('snippets', views.SnippetViewSet)

app_name = 'snippets'
urlpatterns = [
#   path('', views.SnippetList.as_view()),
#   path('<int:pk>', views.SnippetDetail.as_view()),
#   path('', views.UserList.as_view()),
#   path('<int:pk>', views.UserDetail.as_view()),
#   path('users/', views.UserList.as_view()),
#   path('users/<int:pk>', views.UserDetail.as_view()),
    path('hight/', views.api_root),
#   path('<int:pk>/higtlight/', views.SnippetHighlight.as_view()),
    path('', include(router.urls)),
]
#urlpatterns = [
#    path('', views.snippet_list),
#    path('<int:pk>', views.snippet_detail),
#]
 